package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.business.domain.BidRequest;
import cn.wolfcode.p2p.business.domain.PaymentSchedule;
import cn.wolfcode.p2p.business.query.PaymentScheduleDetailQueryObject;
import com.github.pagehelper.PageInfo;

public interface IPaymentScheduleService {

    //创建还款计划
    void createPaymentsSchedule(BidRequest br);

    PageInfo listForPage(PaymentScheduleDetailQueryObject qo);

    PaymentSchedule getById(Long id);

    void update(PaymentSchedule ps);

    int getCountByStateAndBidRequest(Long bidRequestId, int state);

    //检查滞纳金,设置金额
    void overdueAmountCheck();
}
